<template>
	<div>
		<h1>provideInject</h1>
		<p>祖父组件</p>
		<Farther></Farther>
	</div>

</template>

<script>
	import Farther from './components/farther'
	export default {
		components: {
			Farther,
		},
		data() {
			return {
				message:'爷爷的财产'
			}
		},
		provide(){
			return{
				message:this.message
			}
		},
		methods: {

		},
	}
</script>

<style scoped>
</style>